package vip.idiy.anwei_android_iot.domin;

import android.graphics.drawable.Drawable;

import com.alibaba.fastjson.annotation.JSONField;

import org.apache.commons.lang3.builder.ToStringBuilder;

import vip.idiy.anwei_android_iot.R;
import vip.idiy.anwei_android_iot.adapters.ViewType;

/**
 * ClassName DeviceInfo
 * describe: 设备运行信息
 * Created: 勇
 * Email:118085890@qq.com
 * Version: 1.0
 * Create in 10:59 2023/4/22
 */
public class DeviceInfo implements ViewType {
    private int infoId;
    private String deviceId;
    private int typeId;
    private String typeName;
    private String typeImg;
    private int sceneId;
    private String sceneName;
    private String sceneIcon;
    private String firmwareVersion;
    private boolean onLine;
    private int rssi;
    private String deviceData;

    // ============= 列表显示图片
    @JSONField(serialize = false)
    private int rssiDrawable;
    @JSONField(serialize = false)
    private int typeImgDrawable;

    public DeviceInfo() {
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeImg() {
        return typeImg;
    }

    public void setTypeImg(String typeImg) {
        this.typeImg = typeImg;
    }

    public int getSceneId() {
        return sceneId;
    }

    public void setSceneId(int sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    public String getSceneIcon() {
        return sceneIcon;
    }

    public void setSceneIcon(String sceneIcon) {
        this.sceneIcon = sceneIcon;
    }

    public String getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public boolean isOnLine() {
        return onLine;
    }

    public void setOnLine(boolean onLine) {
        this.onLine = onLine;
    }

    public int getRssi() {
        return rssi;
    }

    public void setRssi(int rssi) {
        this.rssi = rssi;
    }

    public String getDeviceData() {
        return deviceData;
    }

    public void setDeviceData(String deviceData) {
        this.deviceData = deviceData;
    }

    public int getRssiDrawable() {
        return rssiDrawable;
    }

    public void setRssiDrawable(int rssiDrawable) {
        this.rssiDrawable = rssiDrawable;
    }

    public int getTypeImgDrawable() {
        return typeImgDrawable;
    }

    public void setTypeImgDrawable(int typeImgDrawable) {
        this.typeImgDrawable = typeImgDrawable;
    }

    @Override
    public int getItemType() {
        return R.layout.layout_device_basic_list;
    }
}
